package com.luych.toolbox.common.enums;

public enum TaskStatus {

    PENDING("调度中", 2),
    RUNNING("执行中", 1),
    SUCCESS("成功", 3),
    ERROR("失败", 3),

    ;

    private final String value;
    private final int priority;

    TaskStatus(String value, int priority) {
        this.value = value;
        this.priority = priority;
    }

    public String getValue() {
        return value;
    }

    public int getPriority() {
        return priority;
    }
}
